<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>积分管理</title>
</head>
<body>
	<jsp:include page="/WEB-INF/page/common/_header.jsp" />
	<div class="jf-top">
		<a href="javascript:void(0)" class="jf-top-link">帮助</a>
		<p class="jf-top-num">${parent.points }</p>
		<p class="jf-top-tip">小积分，大用处，积分兑奖有惊喜！！</p>
	</div>
	<div class="blockHead">
		<h4>收支详情</h4>
	</div>
	<div class="jf-list">
		<ul class="clearfix">
		  <c:forEach var="itm" items="${list }">
		  	<li class="clearfix">
				<div class="jf-list-left">
					<p class="jf-list-title">购买课程(${itm.courseName })</p>
					<p class="jf-list-time"><fmt:formatDate value="${itm.paySubmitTime}" type="date" dateStyle="full"/></p>
				</div>
				<div class="jf-list-right">
					<c:if test="${itm.givePoints > 0 }">
						+${itm.givePoints}
					</c:if>
					<c:if test="${itm.exchangePoints > 0 }">
						-${itm.exchangePoints}
					</c:if>
				</div>
			</li>
		  </c:forEach>
		</ul>
	</div>
	<div class="fjgz none">
		<p style="font-size: 0.34rem;color:#222;line-height: 1.7em;">使用条件</p>
		<p style="font-size: 0.3rem;color:#666;line-height: 1.7em;">
			1.积分数量大于10000;<br>
			2.1000积分可抵10元;
		</p>
	</div>
	<jsp:include page="/WEB-INF/page/common/_footer.jsp"></jsp:include>
	<script type="text/javascript">
		$(function() {
			
			$(".jf-top-link").click(function(){
				$.myalert({
					confirm_btn_title:"我知道了",
					content: $(".fjgz").html(),
					confirm_btn_click: function(e) { //确认按钮点击事件
						$.myalert("getDialog").mydialog("hide");
					}
				});
			})
		})
	
	</script>
</body>
</html>